<?php
return [
    'enablePrettyUrl' => TRUE,
    'showScriptName' => FALSE,
    //'class' => 'app\components\BaseUrlManager',
    //'suffix'=>'/',
    'rules' => [
        'ie' => 'site/ie',
//        ['suffix' => '.html', 'pattern' => 'post/<id:\d+>', 'route' => 'post/view'],
//        ['suffix' => '', 'pattern' => 'page/<id:\d+>', 'route' => 'page/view'],
//        ['suffix' => '.html', 'pattern' => 'post/page-<page:\d+>', 'route' => 'post/index'],
//        ['route' => '<controller>/detail', 'pattern' => '<controller:\w+>/<id:\d+>', 'suffix' => '.html'],
        'category/<slug:>' => 'category/',
        'category/<slug:>/<page:\d+>' => 'category/index',
        'search/<id:>' => 'search/',
        'api/<action:>/' => 'api/<action>',
        '<controller:\w+>/<id:>' => '<controller>/detail',
        '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
        '<controller:\w+>/<action:>/' => '<controller>/<action>',
        '<controller:\w+>/' => '<controller>/',
    ]
];